﻿function AddMenu(CustomerType, ID, Header) {
    $("#CustomerTypeID").val(ID);
    $("#CustomerTypeName").val(CustomerType);
    $('#CustomerTypeModel').modal()
    $("#CustomerTypeModel #ModelLeadHeader").text(Header);
}


function DeleteCustomerType(ID) {
    $('#DeleteCustomerTypeModel #CustomerTypeID').val(ID);
    $('#DeleteCustomerTypeModel').modal()
}

$('#CustomerTypeName').bind('keypress', function (e) {
    //alert("TesT");
    var code = (e.keyCode ? e.keyCode : e.which);

    if (code == 13) { //Enter keycode
        //Do something
        e.preventDefault();
        $("#btnSave").click();
    }
});